public class Test8 {
    public static int  MaxInt(int a,int b){
      return Math.max(a,b);
    }

   public static double MaxDouble( double a,double b,double c){
       double  temp=Math.max(a,b);
       return Math.max(temp,c);
   }

    public static void main(String[] args) {
        System.out.println("两个整数中的最大值是："+MaxInt(5,9));
        System.out.println("三个小数中的最大值是："+MaxDouble(1.6,8.8,9.7));
    }
}
